<template>
	<view class="content">
		<view class="ui_input">
			<view class="ui_input_head">
				<view class="ui_input_head_left">结算金额</view>
				<view class="ui_input_head_right">提现明细</view>
			</view>
			<view class="ui_input_money">
				<view class="ui_input_money_tip">¥</view>
				<input class="ui_input_money_input" placeholder="0.00" v-model="addr" />
			</view>
			<view class="ui_input_head">
				<view class="ui_input_head_left">可结算余额 16250.00</view>
				<view class="ui_input_head_right s">全部提现</view>
			</view>
		</view>

		<view class="ui_info">
			<view class="ui_info_item" @click="show = true">
				<view class="ui_info_item_lable">提现至</view>
				<image class="ui_info_item_card" src="/static/img/icon_bank_card.png" mode=""></image>
				<view class="ui_info_item_text">银行卡</view>
				<u-icon name="arrow-right" size="15"></u-icon>
				<view style="margin-right: 15rpx;"></view>
			</view>
			<view class="ui_info_item">
				<view class="ui_info_item_lable">姓名</view>
				<input class="ui_info_item_input" placeholder="请输入您的姓名" v-model="name" />
			</view>
			<view class="ui_info_item" style="border-bottom: 0rpx;">
				<view class="ui_info_item_lable">银行卡号</view>
				<input class="ui_info_item_input" placeholder="请确认卡号无误" v-model="name" />
			</view>
		</view>

		<view class="ui_btn">提交结算</view>

		<view class="ui_tip">
			<view class="ui_tip_left"></view>
			<view class="ui_tip_lable">温馨提示</view>
		</view>

		<view class="text">内容后台自定义添加</view>
		<view class="text">1、平台申请提现的用户，在提现时收取提现金额的 5% 作为手续费，该费用由支付平台收取。</view>
		<view class="text">2、提现申请将在1~3个工作日审核提现到账，请您耐心等待</view>
		<view class="text">3、可在提现明细中查看提现记录</view>
		<view style="height: 140rpx;"></view>

		<u-popup :show="show" mode="bottom" @close="show=false" round="20">
			<view class="ui_dialog">
				<view class="ui_dialog_top">
					<view class="ui_dialog_top_title">选择结算方式</view>
					<image class="ui_dialog_top_icon" src="/static/img/icon_close.png" mode=""
					@click="show=false"></image>
				</view>
				<view class="ui_dialog_item" @click="type = 0">
					<image class="ui_dialog_item_icon" src="/static/img/icon_bank_card.png"></image>
					<view class="ui_dialog_item_text">银行卡</view>
					<image class="ui_dialog_item_select" 
					:src="type==0?'/static/img/icon_select.png':'/static/img/icon_un_select.png'"></image>
				</view>
				<view class="ui_dialog_item" @click="type = 1">
					<image class="ui_dialog_item_icon" src="/static/img/icon_alipay.png"></image>
					<view class="ui_dialog_item_text">银行卡</view>
					<image class="ui_dialog_item_select" 
					:src="type==1?'/static/img/icon_select.png':'/static/img/icon_un_select.png'"></image>
				</view>
				<view style="height: 200rpx;"></view>
			</view>
		</u-popup>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				show: false,
				type: 0,
			}
		},
		methods: {

		}
	}
</script>

<style lang="less">
	.content {
		width: 750rpx;
		position: relative;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		
		.ui_dialog {
			width: 750rpx;
			display: flex;
			flex-direction: column;
			
			&_top {
				width: 750rpx;
				height: 110rpx;
				position: relative;
				display: flex;
				&_title {
					width: 750rpx;
					line-height: 110rpx;
					text-align: center;
					font-family: PingFang SC;
					font-weight: bold;
					font-size: 36rpx;
					color: #333333;
				}
				&_icon {
					position: absolute;
					right: 30rpx;
					top: 40rpx;
					width: 36rpx;
					height: 36rpx;
				}
			}
			&_item {
				width: 690rpx;
				height: 120rpx;
				margin-left: 30rpx;
				margin-right: 30rpx;
				border-bottom: 1rpx solid #E6E6E6;
				display: flex;
				align-items: center;
				&_icon {
					width: 48rpx;
					height: 48rpx;
				}
				&_text {
					flex: 1;
					margin-left: 18rpx;
					font-family: PingFang SC;
					font-weight: 500;
					font-size: 30rpx;
					color: #333333;
					line-height: 60rpx;
				}
				&_select {
					width: 48rpx;
					height: 48rpx;
				}
			}
		}

		.ui_tip {
			margin-top: 76rpx;
			width: 690rpx;
			font-family: PingFang SC;
			font-weight: bold;
			font-size: 32rpx;
			color: #010101;
			display: flex;
			align-items: center;

			&_left {
				width: 8rpx;
				height: 36rpx;
				background: #9F6F26;
				border-radius: 4rpx;
				margin-right: 10rpx;
			}
		}

		.text {
			width: 690rpx;
			font-family: PingFang SC;
			font-weight: 500;
			font-size: 24rpx;
			color: #666666;
			margin-top: 30rpx;
		}

		.ui_btn {
			margin-top: 30rpx;
			width: 690rpx;
			line-height: 90rpx;
			text-align: center;
			background: linear-gradient(90deg, #C7974E, #986B28);
			border-radius: 45rpx;
			font-family: PingFang SC;
			font-weight: bold;
			font-size: 32rpx;
			color: #FFFFFF;
		}

		.ui_info {
			margin-top: 20rpx;
			width: 700rpx;
			background: #FFFFFF;
			border-radius: 10rpx;
			padding: 10rpx 0 10rpx 30rpx;

			&_item {
				border-bottom: 1rpx solid #E6E6E6;
				width: 100%;
				height: 110rpx;
				display: flex;
				align-items: center;

				&_lable {
					flex: 1;
				}

				&_input {
					width: 400rpx;
					height: 60rpx;
					line-height: 60rpx;
					text-align: end;
					margin-right: 38rpx;
				}

				&_card {
					width: 48rpx;
					height: 48rpx;
				}

				&_text {
					margin-left: 10rpx;
					margin-right: 10rpx;
					font-family: PingFang SC;
					font-weight: 500;
					font-size: 28rpx;
					color: #333333;
					line-height: 60rpx;
				}
			}
		}

		.ui_input {
			margin-top: 20rpx;
			width: 700rpx;
			height: 320rpx;
			background: #FFFFFF;
			border-radius: 10rpx;
			display: flex;
			flex-direction: column;

			&_money {
				margin-left: 20rpx;
				margin-right: 30rpx;
				padding-top: 50rpx;
				padding-bottom: 20rpx;
				border-bottom: 1rpx solid #E6E6E6;
				display: flex;

				&_tip {
					margin-left: 10rpx;
					margin-top: 10rpx;
					margin-right: 10rpx;
					font-family: PingFangSC;
					font-weight: 600;
					font-size: 72rpx;
					color: #333333;
					line-height: 60rpx;
				}

				&_input {
					width: 500rpx;
					height: 80rpx;
					font-size: 80rpx;
					font-weight: bold;
				}
			}

			&_head {
				width: 630rpx;
				margin-left: 27rpx;
				display: flex;
				height: 90rpx;
				align-items: center;
				font-family: Adobe Heiti Std;
				font-weight: normal;
				font-size: 28rpx;
				color: #999999;
				line-height: 60rpx;

				&_left {
					flex: 1;
					color: #333333;
				}

				.s {
					color: #9F6F26;
					line-height: 60rpx;
					text-decoration-line: underline;
				}
			}
		}
	}
</style>